package com.neusoft.eenie.signdemo.adapter;

import android.view.View;
import android.widget.TextView;

import com.neusoft.eenie.signdemo.R;
import com.neusoft.eenie.signdemo.bean.HistoryInfo;


public class HistoryHolder {


    View view;
    View hisItem;
    TextView txtDate;
    TextView txtSta;

    HistoryHolder(View v) {
        this.view = v;
        hisItem = v.findViewById(R.id.hisItem);

        txtDate = (TextView) v.findViewById(R.id.txtDate);
        txtSta = (TextView) v.findViewById(R.id.txtSta);

    }

    public void bindData(HistoryInfo info) {
        txtDate.setText(info.getDate());
        txtSta.setText(info.getStatue());
        if (info.isFull()) {
            txtSta.setSelected(false);
        } else {
            txtSta.setSelected(true);
        }
    }


}
